<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('State')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="stateList" item="vo"}
                <label for="row[state]-{$key}"><input id="row[state]-{$key}" name="row[state]" type="radio"
                                                      value="{$key}" {in name="key" value="2" }checked{/in} />
                    {$vo}</label>
                {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Shopname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-shopname" class="form-control" name="row[shopname]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Payment')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select id="c-payment" class="form-control selectpicker" name="row[payment]">
                {foreach name="paymentList" item="vo"}
                <option value="{$key}" {in name="key" value="0" }selected{
                /in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Receipt')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select id="c-receipt" class="form-control selectpicker" name="row[receipt]">
                {foreach name="receiptList" item="vo"}
                <option value="{$key}" {in name="key" value="0" }selected{
                /in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Receipimages')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-receipimages" class="form-control" size="50" name="row[receipimages]" type="text">
                <div class="input-group-addon no-border no-padding">
                        <span><button type="button" id="faupload-receipimages" class="btn btn-danger faupload"
                                      data-input-id="c-receipimages"
                                      data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp"
                                      data-multiple="true" data-preview-id="p-receipimages"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-receipimages" class="btn btn-primary fachoose"
                                  data-input-id="c-receipimages" data-mimetype="image/*" data-multiple="true"><i
                            class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-receipimages"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-receipimages"></ul>
        </div>
    </div>

            <div class="form-group service">
                <label class="control-label col-xs-12 col-sm-2">{:__('Quota')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-quota" class="form-control" name="row[quota]" type="number">
                </div>
            </div>

        <div class="form-group store">
            <label class="control-label col-xs-12 col-sm-2">{:__('Firstloan')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-firstloan" class="form-control " step="0.01" name="row[firstloan]" type="number"
                       oninput="updateSum()">
            </div>
        </div>
        <div class="form-group store">
            <label class="control-label col-xs-12 col-sm-2">{:__('Systemcost')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-systemcost" class="form-control " step="0.01" name="row[systemcost]" type="number"
                       oninput="updateSum()">
            </div>
        </div>
        <div class="form-group store">
            <label class="control-label col-xs-12 col-sm-2">{:__('Deposit')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-deposit" class="form-control " step="0.01" name="row[deposit]" type="number"
                       oninput="updateSum()">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Total')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-total" class="form-control" step="0.01" name="row[total]" type="number" >
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Channel')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-channel" class="form-control" name="row[channel]" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Channelimages')}:</label>
            <div class="col-xs-12 col-sm-8">
                <div class="input-group">
                    <input id="c-channelimages" class="form-control" size="50" name="row[channelimages]" type="text">
                    <div class="input-group-addon no-border no-padding">
                        <span><button type="button" id="faupload-channelimages" class="btn btn-danger faupload"
                                      data-input-id="c-channelimages"
                                      data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp"
                                      data-multiple="true" data-preview-id="p-channelimages"><i
                                class="fa fa-upload"></i> {:__('Upload')}</button></span>
                        <span><button type="button" id="fachoose-channelimages" class="btn btn-primary fachoose"
                                      data-input-id="c-channelimages" data-mimetype="image/*" data-multiple="true"><i
                                class="fa fa-list"></i> {:__('Choose')}</button></span>
                    </div>
                    <span class="msg-box n-right" for="c-channelimages"></span>
                </div>
                <ul class="row list-inline faupload-preview" id="p-channelimages"></ul>
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Document')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-document" class="form-control" name="row[document]" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Areaadd')}:</label>
            <div class="col-xs-12 col-sm-8">
                <div class='control-relative'><input id="c-city" class="form-control" data-toggle="city-picker"
                                                     name="row[city]" type="text" value=""></div>
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Areadetail')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-areadetail" class="form-control" name="row[areadetail]" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Individual')}:</label>
            <div class="col-xs-12 col-sm-8">

                <select id="c-individual" class="form-control selectpicker" name="row[individual]">
                    {foreach name="individualList" item="vo"}
                    <option value="{$key}" {in name="key" value="0" }selected{
                    /in}>{$vo}</option>
                    {/foreach}
                </select>

            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Individualimages')}:</label>
            <div class="col-xs-12 col-sm-8">
                <div class="input-group">
                    <input id="c-individualimages" class="form-control" size="50" name="row[individualimages]"
                           type="text">
                    <div class="input-group-addon no-border no-padding">
                        <span><button type="button" id="faupload-individualimages" class="btn btn-danger faupload"
                                      data-input-id="c-individualimages"
                                      data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp"
                                      data-multiple="true" data-preview-id="p-individualimages"><i
                                class="fa fa-upload"></i> {:__('Upload')}</button></span>
                        <span><button type="button" id="fachoose-individualimages" class="btn btn-primary fachoose"
                                      data-input-id="c-individualimages" data-mimetype="image/*" data-multiple="true"><i
                                class="fa fa-list"></i> {:__('Choose')}</button></span>
                    </div>
                    <span class="msg-box n-right" for="c-individualimages"></span>
                </div>
                <ul class="row list-inline faupload-preview" id="p-individualimages"></ul>
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Contractimages')}:</label>
            <div class="col-xs-12 col-sm-8">
                <div class="input-group">
                    <input id="c-contractimages" class="form-control" size="50" name="row[contractimages]" type="text">
                    <div class="input-group-addon no-border no-padding">
                        <span><button type="button" id="faupload-contractimages" class="btn btn-danger faupload"
                                      data-input-id="c-contractimages"
                                      data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp"
                                      data-multiple="true" data-preview-id="p-contractimages"><i
                                class="fa fa-upload"></i> {:__('Upload')}</button></span>
                        <span><button type="button" id="fachoose-contractimages" class="btn btn-primary fachoose"
                                      data-input-id="c-contractimages" data-mimetype="image/*" data-multiple="true"><i
                                class="fa fa-list"></i> {:__('Choose')}</button></span>
                    </div>
                    <span class="msg-box n-right" for="c-contractimages"></span>
                </div>
                <ul class="row list-inline faupload-preview" id="p-contractimages"></ul>
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Contracttime')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-contracttime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss"
                       data-use-current="true" name="row[contracttime]" type="text" value="{:date('Y-m-d H:i:s')}">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Business')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-business" class="form-control" name="row[business]" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Businessadd')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-businessadd" class="form-control" name="row[businessadd]" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Businessimages')}:</label>
            <div class="col-xs-12 col-sm-8">
                <div class="input-group">
                    <input id="c-businessimages" class="form-control" size="50" name="row[businessimages]" type="text">
                    <div class="input-group-addon no-border no-padding">
                        <span><button type="button" id="faupload-businessimages" class="btn btn-danger faupload"
                                      data-input-id="c-businessimages"
                                      data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp"
                                      data-multiple="true" data-preview-id="p-businessimages"><i
                                class="fa fa-upload"></i> {:__('Upload')}</button></span>
                        <span><button type="button" id="fachoose-businessimages" class="btn btn-primary fachoose"
                                      data-input-id="c-businessimages" data-mimetype="image/*" data-multiple="true"><i
                                class="fa fa-list"></i> {:__('Choose')}</button></span>
                    </div>
                    <span class="msg-box n-right" for="c-businessimages"></span>
                </div>
                <ul class="row list-inline faupload-preview" id="p-businessimages"></ul>
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Corporatename')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-corporatename" class="form-control" name="row[corporatename]" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Identity')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-identity" class="form-control" name="row[identity]" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Identityimages')}:</label>
            <div class="col-xs-12 col-sm-8">
                <div class="input-group">
                    <input id="c-identityimages" class="form-control" size="50" name="row[identityimages]" type="text">
                    <div class="input-group-addon no-border no-padding">
                        <span><button type="button" id="faupload-identityimages" class="btn btn-danger faupload"
                                      data-input-id="c-identityimages"
                                      data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp"
                                      data-multiple="true" data-preview-id="p-identityimages"><i
                                class="fa fa-upload"></i> {:__('Upload')}</button></span>
                        <span><button type="button" id="fachoose-identityimages" class="btn btn-primary fachoose"
                                      data-input-id="c-identityimages" data-mimetype="image/*" data-multiple="true"><i
                                class="fa fa-list"></i> {:__('Choose')}</button></span>
                    </div>
                    <span class="msg-box n-right" for="c-identityimages"></span>
                </div>
                <ul class="row list-inline faupload-preview" id="p-identityimages"></ul>
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Telephone')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-telephone" class="form-control" name="row[telephone]" type="text">
            </div>
        </div>
    <div class="form-group service">
        <label class="control-label col-xs-12 col-sm-2">{:__('Service_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-service_ids"  data-source="servicenums/index" data-multiple="true"
                   class="form-control selectpage" name="row[service_ids]" type="text" value="">
        </div>
    </div>
    <div class="form-group service">
        <label class="control-label col-xs-12 col-sm-2">{:__('Authorization')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select id="c-authorization" class="form-control selectpicker" name="row[authorization]">
                {foreach name="authorizationList" item="vo"}
                <option value="{$key}" {in name="key" value="0" }selected{
                /in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group service" >
        <label class="control-label col-xs-12 col-sm-2">{:__('Authorizationtime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-authorizationtime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss"
                   data-use-current="true" name="row[authorizationtime]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group service">
        <label class="control-label col-xs-12 col-sm-2">{:__('Authorizationimages')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-authorizationimages" class="form-control" size="50" name="row[authorizationimages]"
                       type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-authorizationimages" class="btn btn-danger faupload"
                                  data-input-id="c-authorizationimages"
                                  data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp"
                                  data-multiple="true" data-preview-id="p-authorizationimages"><i
                            class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-authorizationimages" class="btn btn-primary fachoose"
                                  data-input-id="c-authorizationimages" data-mimetype="image/*" data-multiple="true"><i
                            class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-authorizationimages"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-authorizationimages"></ul>
        </div>
    </div>

    <div class="form-group service">
        <label class="control-label col-xs-12 col-sm-2">{:__('Operation')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select id="c-operation" class="form-control selectpicker" name="row[operation]">
                {foreach name="operationList" item="vo"}
                <option value="{$key}" {in name="key" value="0" }selected{
                /in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>

        <div class="form-group ">
            <label class="control-label col-xs-12 col-sm-2">{:__('Shop_code')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-shop_code" class="form-control" name="row[shop_code]" type="text">
            </div>
        </div>
    <div class="form-group service">
        <label class="control-label col-xs-12 col-sm-2">{:__('Operationadd')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-operationadd" class="form-control" name="row[operationadd]" type="text">
        </div>
    </div>
    <div class="form-group service">
        <label class="control-label col-xs-12 col-sm-2">{:__('Guarantee')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select id="c-guarantee" class="form-control selectpicker" name="row[guarantee]">
                {foreach name="guaranteeList" item="vo"}
                <option value="{$key}" {in name="key" value="0" }selected{
                /in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>

        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Publiccontract')}:</label>
            <div class="col-xs-12 col-sm-8">

                <select id="c-publiccontract" class="form-control selectpicker" name="row[publiccontract]">
                    {foreach name="publiccontractList" item="vo"}
                    <option value="{$key}" {in name="key" value="0" }selected{
                    /in}>{$vo}</option>
                    {/foreach}
                </select>

            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Publictime')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-publictime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss"
                       data-use-current="true" name="row[publictime]" type="text" value="{:date('Y-m-d H:i:s')}">
            </div>
        </div>

        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Publicthandimages')}:</label>
            <div class="col-xs-12 col-sm-8">
                <div class="input-group">
                    <input id="c-publicthandimages" class="form-control" size="50" name="row[publicthandimages]"
                           type="text">
                    <div class="input-group-addon no-border no-padding">
                        <span><button type="button" id="faupload-publicthandimages" class="btn btn-danger faupload"
                                      data-input-id="c-publicthandimages"
                                      data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp"
                                      data-multiple="true" data-preview-id="p-publicthandimages"><i
                                class="fa fa-upload"></i> {:__('Upload')}</button></span>
                        <span><button type="button" id="fachoose-publicthandimages" class="btn btn-primary fachoose"
                                      data-input-id="c-publicthandimages" data-mimetype="image/*"
                                      data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                    </div>
                    <span class="msg-box n-right" for="c-publicthandimages"></span>
                </div>
                <ul class="row list-inline faupload-preview" id="p-publicthandimages"></ul>
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Publictimages')}:</label>
            <div class="col-xs-12 col-sm-8">
                <div class="input-group">
                    <input id="c-publictimages" class="form-control" size="50" name="row[publictimages]" type="text">
                    <div class="input-group-addon no-border no-padding">
                        <span><button type="button" id="faupload-publictimages" class="btn btn-danger faupload"
                                      data-input-id="c-publictimages"
                                      data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp"
                                      data-multiple="true" data-preview-id="p-publictimages"><i
                                class="fa fa-upload"></i> {:__('Upload')}</button></span>
                        <span><button type="button" id="fachoose-publictimages" class="btn btn-primary fachoose"
                                      data-input-id="c-publictimages" data-mimetype="image/*" data-multiple="true"><i
                                class="fa fa-list"></i> {:__('Choose')}</button></span>
                    </div>
                    <span class="msg-box n-right" for="c-publictimages"></span>
                </div>
                <ul class="row list-inline faupload-preview" id="p-publictimages"></ul>
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Otherimages')}:</label>
            <div class="col-xs-12 col-sm-8">
                <div class="input-group">
                    <input id="c-otherimages" class="form-control" size="50" name="row[otherimages]" type="text">
                    <div class="input-group-addon no-border no-padding">
                        <span><button type="button" id="faupload-otherimages" class="btn btn-danger faupload"
                                      data-input-id="c-otherimages"
                                      data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp"
                                      data-multiple="true" data-preview-id="p-otherimages"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                        <span><button type="button" id="fachoose-otherimages" class="btn btn-primary fachoose"
                                      data-input-id="c-otherimages" data-mimetype="image/*" data-multiple="true"><i
                                class="fa fa-list"></i> {:__('Choose')}</button></span>
                    </div>
                    <span class="msg-box n-right" for="c-otherimages"></span>
                </div>
                <ul class="row list-inline faupload-preview" id="p-otherimages"></ul>
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Shopimages')}:</label>
            <div class="col-xs-12 col-sm-8">
                <div class="input-group">
                    <input id="c-shopimages" class="form-control" size="50" name="row[shopimages]" type="text">
                    <div class="input-group-addon no-border no-padding">
                        <span><button type="button" id="faupload-shopimages" class="btn btn-danger faupload"
                                      data-input-id="c-shopimages"
                                      data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp"
                                      data-multiple="true" data-preview-id="p-shopimages"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                        <span><button type="button" id="fachoose-shopimages" class="btn btn-primary fachoose"
                                      data-input-id="c-shopimages" data-mimetype="image/*" data-multiple="true"><i
                                class="fa fa-list"></i> {:__('Choose')}</button></span>
                    </div>
                    <span class="msg-box n-right" for="c-shopimages"></span>
                </div>
                <ul class="row list-inline faupload-preview" id="p-shopimages"></ul>
            </div>
        </div>
        <div class="form-group service">
            <label class="control-label col-xs-12 col-sm-2">{:__('Orization')}:</label>
            <div class="col-xs-12 col-sm-8">

                <select id="c-orization" class="form-control selectpicker" name="row[orization]">
                    {foreach name="orizationList" item="vo"}
                    <option value="{$key}" {in name="key" value="0" }selected{
                    /in}>{$vo}</option>
                    {/foreach}
                </select>

            </div>
        </div>
        <div class="form-group service">
            <label class="control-label col-xs-12 col-sm-2">{:__('Orizationtime')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-orizationtime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss"
                       data-use-current="true" name="row[orizationtime]" type="text" value="{:date('Y-m-d H:i:s')}">
            </div>
        </div>
        <div class="form-group service">
            <label class="control-label col-xs-12 col-sm-2">{:__('Orizationimages')}:</label>
            <div class="col-xs-12 col-sm-8">
                <div class="input-group">
                    <input id="c-orizationimages" class="form-control" size="50" name="row[orizationimages]"
                           type="text">
                    <div class="input-group-addon no-border no-padding">
                        <span><button type="button" id="faupload-orizationimages" class="btn btn-danger faupload"
                                      data-input-id="c-orizationimages"
                                      data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp"
                                      data-multiple="true" data-preview-id="p-orizationimages"><i
                                class="fa fa-upload"></i> {:__('Upload')}</button></span>
                        <span><button type="button" id="fachoose-orizationimages" class="btn btn-primary fachoose"
                                      data-input-id="c-orizationimages" data-mimetype="image/*" data-multiple="true"><i
                                class="fa fa-list"></i> {:__('Choose')}</button></span>
                    </div>
                    <span class="msg-box n-right" for="c-orizationimages"></span>
                </div>
                <ul class="row list-inline faupload-preview" id="p-orizationimages"></ul>
            </div>
        </div>

        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Shopgroup_ids')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-shopgroup_ids" data-rule="required" data-source="shopgroup/index" data-multiple="true"
                       class="form-control selectpage" name="row[shopgroup_ids]" type="text" value="">
            </div>
        </div>

        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Staff_id')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-staff_id" data-rule="required" data-source="staff/staff" class="form-control selectpage"
                       name="row[staff_id]" type="text" value="">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Phone')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-phone" class="form-control" name="row[phone]" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-remark" class="form-control" name="row[remark]" type="text">
            </div>
        </div>

<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Number')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-number" class="form-control" name="row[number]" type="text" value="">-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-mobile" class="form-control" name="row[mobile]" type="text" value="">-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <div class="input-group">-->
<!--                <input id="c-image" class="form-control" size="50" name="row[image]" type="text" value="">-->
<!--                <div class="input-group-addon no-border no-padding">-->
<!--                    <span><button type="button" id="faupload-image" class="btn btn-danger faupload"-->
<!--                                  data-input-id="c-image"-->
<!--                                  data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp"-->
<!--                                  data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>-->
<!--                    <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose"-->
<!--                                  data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i-->
<!--                            class="fa fa-list"></i> {:__('Choose')}</button></span>-->
<!--                </div>-->
<!--                <span class="msg-box n-right" for="c-image"></span>-->
<!--            </div>-->
<!--            <ul class="row list-inline faupload-preview" id="p-image"></ul>-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Trademark')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-trademark" class="form-control" name="row[trademark]" type="text" value="">-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Wechat')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-wechat" class="form-control" name="row[wechat]" type="text" value="">-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Avatar')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <div class="input-group">-->
<!--                <input id="c-avatar" class="form-control" size="50" name="row[avatar]" type="text" value="">-->
<!--                <div class="input-group-addon no-border no-padding">-->
<!--                    <span><button type="button" id="faupload-avatar" class="btn btn-danger faupload"-->
<!--                                  data-input-id="c-avatar"-->
<!--                                  data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp"-->
<!--                                  data-multiple="false" data-preview-id="p-avatar"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>-->
<!--                    <span><button type="button" id="fachoose-avatar" class="btn btn-primary fachoose"-->
<!--                                  data-input-id="c-avatar" data-mimetype="image/*" data-multiple="false"><i-->
<!--                            class="fa fa-list"></i> {:__('Choose')}</button></span>-->
<!--                </div>-->
<!--                <span class="msg-box n-right" for="c-avatar"></span>-->
<!--            </div>-->
<!--            <ul class="row list-inline faupload-preview" id="p-avatar"></ul>-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Bio')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-bio" class="form-control" name="row[bio]" type="text" value="">-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Refuse')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-refuse" class="form-control" name="row[refuse]" type="text" value="">-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <textarea id="c-content" class="form-control editor" rows="5" name="row[content]" cols="50"></textarea>-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('City')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <div class='control-relative'><input id="c-city" class="form-control" data-toggle="city-picker"-->
<!--                                                 name="row[city]" type="text" value=""></div>-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Verify')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->

<!--            <select id="c-verify" data-rule="required" class="form-control selectpicker" name="row[verify]">-->
<!--                {foreach name="verifyList" item="vo"}-->
<!--                <option value="{$key}" {in name="key" value="0" }selected{-->
<!--                /in}>{$vo}</option>-->
<!--                {/foreach}-->
<!--            </select>-->

<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->

<!--            <div class="radio">-->
<!--                {foreach name="statusList" item="vo"}-->
<!--                <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio"-->
<!--                                                       value="{$key}" {in name="key" value="normal" }checked{/in} />-->
<!--                    {$vo}</label>-->
<!--                {/foreach}-->
<!--            </div>-->

<!--        </div>-->
<!--    </div>-->
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
<script>
    function updateSum() {
        var input1 = parseFloat(document.getElementById('c-firstloan').value) || 0;
        var input2 = parseFloat(document.getElementById('c-systemcost').value) || 0;
        var input3 = parseFloat(document.getElementById('c-deposit').value) || 0;
        var total = input1 + input2 + input3;
        document.getElementById('c-total').value = total;
    }

</script>
